package cn.edu.sjtu.message_management.model;

import lombok.AccessLevel;
import lombok.Getter;

@Getter(AccessLevel.PUBLIC)
public enum RespStatus {
    SUCCESS("200", "请求成功"),

    WRONG_INFORMATION("301", "输入信息有误"),

    SERVER_ERROR("400", "服务器错误"),

    UNKNOWN_ERROR("500", "未知错误");


    private String code;
    private String message;

    RespStatus(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
